<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="houtai_mainhead.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>优惠券</title>
<link rel="stylesheet" href="statics/css/manage.css" type="text/css"></link>
<script type="text/javascript">
</script>
</head>
<body>
	<table class="discount" style="margin-top:30px"> 
		<thead>
			<tr style="height: 50px;">
				<th>优惠券名称</th>
				<th>有效时长</th>
				<th>活动图片</th>
				<th>数量</th>
				<th>折扣数</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach items="${discount}" var="em">
				<tr>
					<td>${em.dName}</td>
					<td>${em.dTime}</td>
					<td>
						<img src="statics/image/upload/huodong/${em.dpicture}"
							style="width: 200px;height: 30px;"
						>
					</td>
					<td>${em.dnum}</td>
					<td>${em.ddiscount}</td>
					<td>
						<a class="red"
						 href="houdiscountxg?dname=${em.dName}
							&dtime=${em.dTime}
							&dpicture=${em.dpicture}
							&dnum=${em.dnum}
							&did=${em.dId}
							&ddiscount=${em.ddiscount}
							&dpicture=${em.dpicture}"	
						>修改</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	
</body>
</html>